﻿@inherits Umbraco.Web.Mvc.UmbracoTemplatePage
@{
    Layout = "umbLayout.cshtml";

    var band = CurrentPage.Parent;

    var spotifyUri = "https://embed.spotify.com/?uri=";

    spotifyUri += CurrentPage.spotifyUri;

    var shareUrl = "http://guitar-greb.com/";

    shareUrl += @CurrentPage.Url;
}

<div class="container">
    <div class="row">
        <div class="">
            <h1>@CurrentPage.Name</h1>
        </div>
        <a href="@band.Url">
            <h3 style="font-style: oblique;">@band.Name</h3></a>
    </div>
    <div class="row">
        <div class="col-md-9">
            <div class="row">
                <div class="col-md-12">
                    <div class="col-md-6 well">
                        <span>
                            <i class="glyphicon glyphicon-calendar"></i>
                            @CurrentPage.CreateDate
                        </span><br/>
                        @if (!CurrentPage.IsNull("songMember"))
                        {
                            <span><i class="glyphicon glyphicon-user"></i> @Members.GetById(CurrentPage.songMember).Name</span>
                        }
                        else
                        {
                            <span><i class="glyphicon glyphicon-user"></i> Ókendur</span>
                        }
                    </div>
                    @if (CurrentPage.spotifyUri.Length > 0)
                    {
                        <div class="col-md-6">

                            <iframe src="@spotifyUri" width="300" height="80" frameborder="0" allowtransparency="true"></iframe>

                        </div>
                    }
                </div>
                <div class="row">
                    <div class="col-md-12">
                        <div class="">
                            <!-- Go to www.addthis.com/dashboard to customize your tools -->
                            <div class="addthis_sharing_toolbox"></div>
                        </div>
                        <pre>@CurrentPage.bodyText</pre>
                    </div>

                </div>
            </div>
        </div>
        <div class="col-md-3 well">
            @Html.Partial("bandsAlfabet")
        </div>
    </div>
</div>